<%@ page contentType="text/html; charset=utf-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<script type="text/javascript"> 


function saveRecord(){
	if ($('#frmRecord').form('validate')){
		var data = $('#frmRecord').serialize();
		$.ajax({
			url: '<c:url value="/system/record/saveRecord.do"/>',
			type: 'POST',
			data: data,
			beforeSend: function(XmlHttpRequest, textStatus, errorThrown) {
				$.messager.progress({
					title:'提示',
					msg:'正在执行数据操作，请稍待...'
				});
			},
			success: function(result) {
				$.messager.progress('close');
				if(result.success){
					$('#dlgAddRecord').dialog('close').remove();
					$('#recordList').datagrid('clearSelections').datagrid('reload');
					$.messager.alert('提示', result.data , 'info'); 
				}
				else{
					$.messager.alert('错误', result.data , 'error');
				}
			}
		});
	}
}


</script>
<div style="padding: 5px;">
	<form id="frmRecord" method="post" style="margin:0;padding:0">
	<table align="center" class="formTableShadow" >
		<tr>
			<th>浏览时间：</th>
			<td>
				<input type="hidden" name="id" id="id" />
				<input type="text" id="browsetime" name="browsetime" style="width:220px"  class="easyui-datetimebox" required="true" />	
			</td> 
			<th>浏览器：</th>
			<td>
			    <input type="text" id="browser" name="browser" style="width:220px"  required="true" /> 
			</td>
		</tr>
		<tr>
			<th>计算机：</th>
			<td>
				 <input type="text" id="computername" name="computername" style="width:220px"  required="true" /> 	
			</td>
			<th>计算机组：</th>
			<td>
			    <input type="text" id="computergroup" name="computergroup" style="width:220px"  required="true" /> 
			</td>
		</tr>
		<tr>
			<th>用户：</th>
			<td>
			    <input type="text" id="controluser" name="controluser" style="width:220px"  required="true" /> 
			</td>
			<th>用户组：</th>
			<td>
			    <input type="text" id="usergroup" name="usergroup" style="width:220px"  required="true" /> 
			</td>
		</tr> 
		<tr>
			<th>网站：</th>
			<td>
			    <input type="text" id="domain" name="domain" style="width:220px"  required="true" /> 
			</td>
			<th>标题：</th>
			<td>
			    <input type="text" id="title" name="title" style="width:220px"  required="true" /> 
			</td>
		</tr> 
		<tr>
			<th>网址：</th>
			<td colspan="3" >
			    <input type="text" id="url" name="url" style="width:100%"  required="true" /> 
			</td> 
		</tr> 
	</table>
	</form>
</div>